package com.zbl.zblproject.hrm.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zbl.zblproject.hrm.entity.HrmDepartment;
import com.zbl.zblproject.hrm.entity.HrmEmployee;

import java.util.List;

/**
 * @author youlanqiang
 * @version 1.0
 * @date 2018/10/29
 */
public interface HrmEmployeeService {

    boolean addEmployee(HrmEmployee employee);

    boolean deleteEmployeById(int id);

    boolean updateEmployeeById(HrmEmployee employee);

    IPage<HrmEmployee> pageEmployee(Page page,int status, String search);

    IPage<HrmDepartment> pageDepartment(Page page, String search);

    boolean addDepartment(HrmDepartment department);

    boolean deleteDepartmentById(int id);

    boolean updateDepartmentById(HrmDepartment department);

    List<HrmDepartment> allDepartment();

    List<HrmDepartment> allDepartmentList();


}
